<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>复合选择器-链接伪类选择器通常写法</title>
    <style>
      /* 设置<a>标签选择器，将所有链接统一修改样式 */
      a {
        color: #333;
        text-decoration: none;
      }
      /* 修改:hover链接伪类选择器，鼠标经过时的样式 */
      a:hover {
        color: #369; /* 鼠标经过时改变的颜色 */
        text-decoration: underline;
      }
    </style>
  </head>

  <body>
    <a href="#">小猪佩奇</a>
    <a href="http://www.xxxxxxxx.com">未知的网站</a>
  </body>
</html>
